a loop inside another loop